<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Mag extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('manage_login');
        
        $fb_config = array(
            'appId'  => '264489850252668',
            'secret' => '150cc65835eb81c20faa114175539758',
            'cookie' => true
        );
        $this->load->library('facebook', $fb_config);
    }

    public function index() {
        $data = $this->manage_login->manageLogin();
        $this->load->view('home/home', $data);
    }

}